<script type="text/javascript">
    $(window).on('load', function () {

        $('.selectpicker').selectpicker({
            'selectedText': 'cat'
        });

        // $('.selectpicker').selectpicker('hide');
    });
</script>
<div class="row">
    <div class="col-xs-7 space-section box">
        <ul class="list-group space-section">
            <?php foreach($posts as $data):?>
            <li class="row">
                <div class="col-xs-2">
                    <?php echo Fuel\Core\Asset::img('icon-pdf.png', array('class' => 'img-responsive'));?>
                </div>
                <div class="col-xs-10 anpha">
                    <label class="title">
                        <?php echo \Fuel\Core\Html::anchor('/post/view/'.$data->slug.'/'.$data->id, $data->title);?>
                    </label>
                    <p class="hint"><?php echo date('\N\g\à\y d \t\h\á\n\g m \n\ă\m\ Y', $data->created_at);?> - Bởi <?php echo $data->users->username;?></p> 
                    <span><?php echo $data->type->name;?> - <?php echo $data->course->name;?> - năm <?php echo $data->year;?>  </span> <br />
                    <span>Giảng viên : <a href="#"><?php echo $data->teacher->name;?></a> - <a href="#"><?php echo $data->university->name;?></a></span>
                </div>
            </li>
            <?php endforeach;?>
        </ul>
        <div class="row">
            <div class="col-xs-12 text-center">
                <?php echo html_entity_decode($pagination);?>
            </div>
        </div>
    </div>
    <div class="col-xs-2">
        Nguyễn Văn Dũng
    </div>
    <div class="col-xs-3 anpha">
        <ul class="nav nav-divider space-section">
            <li class='<?php echo isset($subnav) && $subnav == "index" ? "active" : ""; ?>'>
                <?php echo \Fuel\Core\Html::anchor('/home/index', 'Đề thi');?>
            </li>
            <li class='<?php echo isset($subnav) && $subnav == "create_post" ? "active" : ""; ?>'>
                <?php echo \Fuel\Core\Html::anchor('/post/create', 'Đăng đề thi');?>
            </li>
            <li class='<?php echo isset($subnav) && $subnav == "index_happy" ? "active" : ""; ?>'>
                <?php echo \Fuel\Core\Html::anchor('/happy/index', 'Điểm vui');?>
            </li>
        </ul>
        
        <div class="space-section box">
            <label class="label-sidbar">Lọc theo</label>
            <div class="row">
                <div class="col-xs-12">
                    <select id="bs3Select" class="selectpicker show-tick form-control" data-live-search="true">
                        <option>Trường</option>
                        <option>ĐH Công nghệ</option>
                        <option>ĐH Kinh tế</option>
                        <option>ĐH Giáo dục</option>
                        <option>ĐH Ngoại ngữ</option>
                        <option>ĐH Công nghiệp</option>
                        <option>ĐH Văn hóa</option>
                        <option>ĐH Nghệ thuật</option>
                    </select>
                </div>
                <div class="col-xs-12">
                    <select id="bs3Select" class="selectpicker show-tick form-control" data-live-search="true">
                        <option>Môn học</option>
                        <option>ĐH Công nghệ</option>
                        <option>ĐH Kinh tế</option>
                        <option>ĐH Giáo dục</option>
                        <option>ĐH Ngoại ngữ</option>
                        <option>ĐH Công nghiệp</option>
                        <option>ĐH Văn hóa</option>
                        <option>ĐH Nghệ thuật</option>
                    </select>
                </div>
                <div class="col-xs-12">
                    <select id="bs3Select" class="selectpicker show-tick form-control" data-live-search="true">
                        <option>Thầy (cô) giáo</option>
                        <option>ĐH Công nghệ</option>
                        <option>ĐH Kinh tế</option>
                        <option>ĐH Giáo dục</option>
                        <option>ĐH Ngoại ngữ</option>
                        <option>ĐH Công nghiệp</option>
                        <option>ĐH Văn hóa</option>
                        <option>ĐH Nghệ thuật</option>
                    </select>
                </div>
                <div class="col-xs-12">
                    <select id="bs3Select" class="selectpicker show-tick form-control" data-live-search="true">
                        <option>Năm</option>
                        <option>2014</option>
                        <option>2013</option>
                        <option>2012</option>
                        <option>2011</option>
                        <option>2010</option>
                        <option>2009</option>
                        <option>2008</option>
                    </select>
                </div>
                <div class="col-xs-12">
                    <button type="button" class="btn col-xs-12 background">Lọc</button>
                </div>
            </div>
        </div>
    </div>
</div>